package ph.loong.deliveryman.http

import io.reactivex.Observable
import ph.loong.deliveryman.bean.account.VerifiyCodeBean
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

/**
 * Author jc.lu.
 * Dates 2018/2/8.
 * Email Tbsupland@163.com.
 * desc+
 */
interface ApiService {

    /**
     * 获取验证码token
     */
    @POST("/waimai/openservice/getToken")
    fun getToken(): Observable<VerifiyCodeBean>


    /**
     * 登录接口
     */
    @FormUrlEncoded
    @POST("/waimai/openservice/DeliveryLogin")
    fun deliveryLogin(@Field("token") token: String, @Field("verify") verify: String,
                      @Field("password") password: String,
                      @Field("loginType") loginType: String,
                      @Field("phone") phone: String,
                      @Field("phonePre") phonePre: String): Observable<Any>


}